package com.itheima.singleton;

/*****
 * @Author: http://www.itheima.com
 * @Description: com.itheima.singleton.SingleModel
 ****/
public class SingleModel {

    //      只有单例 饿汉模式
    private static SingleModel model = new SingleModel();

    //只允许自行实例化

    private SingleModel() {
    }

    //通过方法提供实例
    public static SingleModel getInstance() {
        return model;
    }

}
